import api from '../utils/apiUtils';

// 通道分页
export function getChannelPage (params) {
  // return api.get ('/sys/channel/page', params);
  return api.get ('/sys/homepage/getChannelRank', params);
}

// 商户分页
export function getMerchPage (params) {
  // return api.get ('/sys/merchant/page', params);
  return api.get ('/sys/homepage/merchantsRanking', params);
}

// 排行榜
export function getLeaderboard (params) {
  return api.get ('/sys/homepage/larboard', params);
}

// 商户金额统计
export function getMerchAmount (params) {
  return api.get ('/sys/homepage/merchants', params);
}

// 通道金额统计
export function getChannelAmount (params) {
  return api.get ('/sys/homepage/channel', params);
}

// 通道/商户金额统计
export function getTypeAmount (params) {
  return api.get ('/sys/index', params);
}
